package com.lvt.example.thinking.in.spring.questions.L19.bean.definine.example02;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;

/**
 * @author LT
 * @date 2022/10/2
 */
@SpringBootApplication
public class Application {

    public static void main(String[] args) {
        SpringApplication.run(Application.class, args);
    }

    //这个bean装配给ServiceImpl的构造器参数“serviceName”
    @Bean
    public String serviceName(){
        return "MyServiceName";
    }
}
